package cn.tedu.blog.server.mapper;

import cn.tedu.blog.server.pojo.vo.TagDetailVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface ArticleTagMapper {

    /*插入文章id关联关系*/
    int insert(@Param("articleId") Long id, @Param("tags") List<Long> tagIds, @Param("create") LocalDateTime create);



    /**
     * 根据标签id删除标签和文章关联信息
     */
    int deleteByTagId(List<Long> tagId);
}
